package com.hnx.admin.system.enums.user;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum UserStateEnum {

    Stop(0,"停用"),
    Normal(1,"正常");
    @Getter
    @EnumValue
    private Integer code;
    @Getter
    @JsonValue
    private String status;
    UserStateEnum(Integer code, String status){
        this.code = code;
        this.status = status;
    }

}
